package com.seezoon.domain.dao.mapper;

import com.seezoon.domain.dao.po.DeviceInfoPO;
import java.time.Instant;
import java.util.Set;

public interface DeviceInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(DeviceInfoPO row);

    DeviceInfoPO selectByPrimaryKey(Long id);

    DeviceInfoPO selectBySimNumber(String simNumber);

    int updateByPrimaryKeySelective(DeviceInfoPO row);

    int updateByPrimaryKey(DeviceInfoPO row);

    int updateByPing(Set<Long> deviceIds, Instant now);

    int offlineHeartbeatTimeout(Instant offlineTime, Instant now);
}